<?php
	session_start();
	
	if(isset($_SESSION["giohang"]) && isset($_GET["id"]))
	{
		$id = $_GET["id"];
		$sl = $_GET["sl"];
		
		for($i = 0; $i < count($_SESSION["giohang"]); $i++)
		{
			if($_SESSION["giohang"][$i] == $id)
			{
				$_SESSION["soluong"][$i] = $sl;		
				break;
			}	
		}
	}
	
	header("location:".$_SESSION["urlHienTai"]);
?>